package me.huangxiang.design_pattern.strategy;

/**
 * Hello world!
 *
 */
public class StrategyApp
{
    public static void main( String[] args )
    {
        Duck duck = new MallardDuck();
        duck.performFly();
        duck.performQuack();
        duck.setFlyBehavior(new FlyNoWay());
        duck.performFly();
    }
}
